package cn.tedu.spring.example;

import org.springframework.stereotype.Component;

/**
 * Component注解:
 * 1.将类交给Spring Framework 的组件
 * 2.默认情况下，Spring Framework 会将类名作为Bean的id
 * 3.未来框架会为该类常见对象
 */
@Component
public class User {
    public void run(){
        System.out.println("Hello Spring Framework~~");
    }
}
